home *** CD-ROM | disk | FTP | other *** search
-
- ÃO.ô > MiniDump5 : A self-contained function.
- ÃP#Ý ¤minidump(margin%,threshold%)
- ÃZô The BASIC version.
- Ãd:
- Ãn:
- Ãx9ç margin%>79 ☓ threshold%>255 … =£ :ô Bad parameters.
- Ãŵ:
- Ã…:
- ÄEê left%,bottom%,right%,top%,xorigin%,yorigin%,xconvert%,yconvert%
- Ã =ê line%,x%,points%,pixel%,printcode%,strike%,colour%,vdu%
- ê
- Þ vdu% 39
- ô:
- þ:
- ÃÈ!(vdu%+ 0)= 4
- ÃÒ!(vdu%+ 4)= 5
- ÃÜ!(vdu%+ 8)=128
- Ãæ!(vdu%+12)=129
- Ãð!(vdu%+16)=130
- Ãú!(vdu%+20)=131
- Ä!(vdu%+24)=136
- Ä!(vdu%+28)=137
- Ä!(vdu%+32)=-1
- Ä"&È− "OS_ReadVduVariables",vdu%,vdu%
- Ä,xconvert%=!(vdu%+ 0)
- Ä6yconvert%=!(vdu%+ 4)
- Ä@left% =!(vdu%+ 8)
- ÄJbottom% =!(vdu%+12)
- ÄTright% =!(vdu%+16)
- Ä^top% =!(vdu%+20)
- Ähxorigin% =!(vdu%+24)
- Äryorigin% =!(vdu%+28)
- Ä|:
- Äŷ:
- Ä‘Hleft% = (left%<<xconvert%)-xorigin% :ô These are the screen
- ÄŒGright% = ((right%+1)<<xconvert%)-xorigin%-1 :ô co-ordinates of the
- ĤHbottom%= (bottom%<<yconvert%)-yorigin% :ô the graphics window.
- Ä®3top% = ((top%+1)<<yconvert%)-yorigin%-1 :ô
- ĸ:
- ÄÂ:
- ÄÌIpoints%=(right%-left%+1)Ŵ4 :ô The number of printed points per line.
- ÄÖ:
- Äà:
- Äê%ô *FX 3,10 sends to printer only.
- Äô*FX 3,10
- Äþ/ï 27,64 :ô Initialise the printer.
- Å=ï 27,65,8 :ô 8/72" line spacing = 8 dots per line.
- Å/ï 27,108,margin% :ô Left margin is margin%.
- Å:
- Å&:
- Å0 ã line%=top% ¸ bottom% ⇦ -32
- Å:9ï 27,42,5,points%◰&100,points%Ŵ&100:ô Printer mode 5.
- ÅDã x%=left% ¸ right% ⇦ 4
- ÅNCprintcode%=0 :ô Initialise the value sent to the printer.
- ÅX9ã pixel%=7 ¸ 0 ⇦ -1 :ô Assemble 'colour' of 8 pixels.
- ÅbDcolour%=°x%,line%-28+(pixel%<<2)) :ô If colour% is greater
- ÅlHprintcode%+=(-(colour%>threshold%))<<pixel% :ô than threshold% then
- Åv=í pixel% :ô print a dot.
- Å€Fï printcode% :ô One printhead strike prints a column of 8 dots.
- Å⇩í x%
- Å“5ï 10,13 :ô Line feed and carriage return.
- Åfií line%
- Ũ:
- Ų:
- ż!ï 12 :ô Form feed.
- ÅÆ)ï 27,64 :ô Reset the printer.
- ÅÐ:
- ÅÚ1ô *FX 3,0 restores output to the screen only.
- Åä*FX 3,0
- Åî:
- Åø=¹
- Æ:
- ÿ